﻿#ifndef ORDERCENTER_H
#define ORDERCENTER_H

#include <QWidget>
#include "ordermanagemodel.h"

namespace Ui {
class OrderCenter;
}

class OrderCenter : public QWidget
{
    Q_OBJECT
signals:
    void signalGainOrderAllList();

public:
    explicit OrderCenter(QWidget *parent = nullptr);
    ~OrderCenter();

public slots:
    void slotUpdateOrderShowForWorker();

private slots:
    void on_pb_today_clicked();
    void on_pb_yesterday_clicked();
    void on_pb_week_clicked();
    void on_pb_month_clicked();
    void on_de_start_dateChanged(const QDate &date);
    void on_de_end_dateChanged(const QDate &date);
    void on_pb_update_clicked();

private:
    Ui::OrderCenter *ui;

    DaySelect m_select;
    QDate m_startDate;
    QDate m_endDate;
    OrderManageModel *m_modelAll;
};

#endif // ORDERCENTER_H
